package com.njupt.user.service;

import com.njupt.user.dao.deviceMapper;
import com.njupt.user.model.device;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("deviceService")
public class deviceServiceimpl implements deviceService{
    @Autowired
    private deviceMapper deviceMapper;
    @Override
    public void updateDevice(Map map){
        deviceMapper.updateDevice(map);
    }
    @Override
    public void quitDevice(Map map){
        deviceMapper.quitDevice(map);
    }
    @Override
    public List<device> selectDevice(Map map){
        return deviceMapper.selectDevice(map);
    }
}
